
<template>
  <div class="tab">
    <div class="tab-item" v-for="(v,index) in tabData" :key="index">
      <item-icon :item='v' />
    </div>
  </div>
</template>
<script>
import ItemIcon from './icon.vue'
import tabData from '@/data/tab.js'
export default {
  name: 'tab',
  components: {
    ItemIcon
  },
  setup() {
    return { tabData }
  }
}
</script>
<style lang="less" scoped>
.tab {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 46px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  border-top: 1px solid #ccc;
}
.tab-item {
  display: flex;

  font-size: 14px;
  // justify-content: center;
  align-items: center;
}
</style>
